#!/bin/bash
ss -antpul | grep -q nginx && exit 0 || exit 1
#vrrp_script chk_http_port {     
#     script "/etc/keepalived/check_http.sh"  #定义检测脚本位置
#     interval 2                              #定义脚本执行时间
#}